package com.application.world.manage;

import java.util.TimerTask;

import org.apache.log4j.Logger;

import com.application.map.manage.MapManage;

public class WorldEnvTimer extends TimerTask {
	private Logger logger = Logger.getLogger(this.getClass());
	@Override
	public void run() {
		//System.out.println("flash WorldEnvTimer at    "+new Date(System.currentTimeMillis()).toLocaleString());
			try {
				for (MapManage map:WorldManage.getAllMapManage().values()) {
					map.updateEnv();
				}
			} catch (Exception e) {
				logger.error("WorldEnvTimer check error",e);
				//e.printStackTrace();
			}
	}

	 

}
